package com.kyivmohyla.kma2.client.presenter;

import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.kyivmohyla.kma2.client.gin.Injector;

public class LoginDeniedViewPresenter implements Presenter {

    private final Display display;

    @Inject
    public LoginDeniedViewPresenter() {
        Injector injector = Injector.INSTANCE;
        this.display = injector.getLoginDeniedView();
    }

    @Override
    public void go(HasWidgets container) {
        container.clear();
        container.add(display.asWidget());
    }

    public interface Display {
        Widget asWidget();
    }
}
